]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
networkAgent: Adjust to introspection change
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jul 2017 15:14:31 +0000 (17:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 20 Jul 2017 15:16:50 +0000 (17:16 +0200)
GLib commit fd329f4853f1 added annotations to GKeyFile methods that
change the API on the JS level, so adjust to that.

js/ui/components/networkAgent.js

index fd59c11cafb5fb4fe5325c8dfd441dc1dde4b1ef..3b369ec6981a3a04d5d25e0c142bb123dec716ec 100644 (file)
@@ -514,7 +514,7 @@ var VPNRequestHandler = new Lang.Class({
                                 message: keyfile.get_string(VPN_UI_GROUP, 'Description'),
                                 secrets: [] };
 
-            let [groups, len] = keyfile.get_groups();
+            let groups = keyfile.get_groups();
             for (let i = 0; i < groups.length; i++) {
                 if (groups[i] == VPN_UI_GROUP)
                     continue;